87e51f
@@ -100,4 +100,14 @@
public static boolean matches(byte[] signature, int length) {
         return true;
     }
     
+    /**
+     * Closes the input stream (unless it is System.in).
+     * 
+     * @since 1.2
+     */
+    public void close() throws IOException {
+        if (this.in != System.in) {
+            this.in.close();
+        }
+    }
 }
